4825172e2b327c30fe4d03fd784417127aa83337,scroll/src/main/java/com/powyin/scroll/widget/SwipeNest.java,SwipeNest,onLayout,#boolean#number#number#number#number#,195

Before Change


            SwipeNest.LayoutParams lp = (SwipeNest.LayoutParams) child.getLayoutParams();
            childTop += lp.topMargin;
            child.layout(childLeft, childTop, childRight, childTop + childHeight);
            childTop += childHeight + lp.bottomMargin;

        }

        // 中间显示View(下部分);
        View lastIndexView = getChildAt(getChildCount() - 1);
        if (lastIndexView != null) {
            SwipeNest.LayoutParams lp = (SwipeNest.LayoutParams) lastIndexView.getLayoutParams();
            lastIndexView.layout(childLeft, childTop, childRight, childTop + bottom);
            childTop += bottom + lp.bottomMargin;
        }

After Change


        scrollY_Up = -mSwipeControl.getSwipeHead().getMeasuredHeight();

        if (mTarget != null) {
            mTarget.layout(0, childTop, right - left, childTop + bottom - top);
            childTop += bottom - top;
        }